package com.tool.shardingjdbc.config;

/**
 * @description:
 * @author: weirui
 * @create: 2020-07-22 14:59
 **/
public enum DataSourceType {
    SHARDING,
    FINTECH;
    private static ThreadLocal<DataSourceType> dataSourceTypeThreadLocal = new ThreadLocal<DataSourceType>();


    public static DataSourceType getDataSourceType() {
        return dataSourceTypeThreadLocal.get();
    }

    public static void setDataSourceType(DataSourceType dataSourceType){
        dataSourceTypeThreadLocal.set(dataSourceType);
    }
}
